<?php
	$css_list[0]['url'] = './tpl/css/tweetlist.css';
	$css_list[1]['url'] = './tpl/css/dzt_shop.css';
	$js_list[0] = './tpl/js/shop.js';
?>
<!--{template inc/header}-->
<div id="body" class="fm960"> 
	<div class="shop_wrapper">
		<h1 style="float: none; font-size: 24px; padding: 13px 10px;">{$shop['shop_name']}</h1>
		<div class="shop_sidebar box_shadow">
			<div class="shop_summary">
				<div>
					<!--{if !empty($shop['shop_logo'])}-->
					<a href="{$shop['to_url']}" target="_blank"><img class="lazyload" width="80" height="80" style="border: 1px solid #e0e0e0;" src="./tpl/images/lazyload.gif" original="{getimgbyid $shop['shop_logo']}"/></a>
					<!--{/if}-->
				</div>
				<div class="title">{$shop['shop_name']}</div>
				<div class="shop_show_title">
				<!--{if $shop['shop_url_list']['taobao']}-->
				<a href="{$shop['shop_url_list']['taobao']}" target="_blank"><span class="dzt_taobao"></span><span class="shop_entry">淘宝入口</span></a>
				<!--{/if}-->
				<!--{if $shop['shop_url_list']['paipai']}-->
				<a href="{$shop['shop_url_list']['paipai']}" target="_blank"><span class="dzt_paipai"></span><span class="shop_entry">拍拍入口</span></a>
				<!--{/if}-->
				<!--{if $shop['shop_url_list']['dangdang']}-->
				<a href="{$shop['shop_url_list']['dangdang']}" target="_blank"><span class="dzt_dangdang"></span><span class="shop_entry">当当入口</span></a>
				<!--{/if}-->
				</div>
			</div>
			
			<!--{if $yhq}-->
            <div class="section">
				<h3 class="section_title" style=" height:26px; border-bottom:none; background-image:url(/tpl/dzt/images/kougequan.gif); background-repeat:no-repeat;">
				</h3>
                <style type="text/css">
				.item_kougequan{ width:223px; float:left;}
				.item_kougequan a{ display:block; width:60px; height:60px; float:left; margin-left:10px;}
				</style>
				<div class="relative_shop">
					<div class="item_kougequan" >	
						<!--{loop $yhq $yhqvo}-->
						<a href="{$yhqvo[coupon]}" target="_blank"><img src="{$yhqvo[coupon_pic]}" border="none"  width="60" /></a>
						<!--{/loop}-->
					</div>
					<div class="clear-fix"></div>
				</div>
			</div>
			<!--{/if}-->
			<!--{if $hdsm}-->
            <div class="section">
				<h3 class="section_title" style=" height:26px; border-bottom:none; background-image:url(/tpl/dzt/images/dianpuhuodong.gif); background-repeat:no-repeat;">
				</h3>
                <style type="text/css">
				.item_dianpuhuodong{ width:223px; float:left;}
				.item_dianpuhuodong ul{ width:200px; font-size:14px; margin-left:10px; padding-left:10px; list-style-image:url(/tpl/dzt/images/dianpuhuodong_point.gif);}
				</style>
				<div class="relative_shop">
					<div class="item_dianpuhuodong" >
                    	<ul>
						
                     <!--{loop $hdsm $hdsmvo}-->
						<li> $hdsmvo</li>
						<!--{/loop}-->
                        </ul>
					</div>
					<div class="clear-fix"></div>
				</div>
			</div>
			<!--{/if}-->
			
			<div class="section">
				<h3 class="section_title">
					<span><a href="{u shop/index}" target="_blank">更多>></a></span>推荐这家店铺的人还在逛
				</h3>
				<div class="relative_shop">
					<!--{loop $shops_tags['shops'] $shop_item}-->
					<div class="item" >
						<a href="{$shop_item['url']}" target="_blank" title="{$shop_item['shop_name']}"><img  class="lazyload" width="80" height="80"  src="./tpl/images/lazyload.gif" original="{getimgbyid $shop_item['shop_logo']}"/></a><br/>
						<a href="{$shop_item['url']}" class="link red" target="_blank" title="{$shop_item['shop_name']}">{cutstr $shop_item['shop_name'] 26}</a>
					</div>
					<!--{/loop}-->
					<div class="clear-fix"></div>
				</div>
			</div>
			<div class="section">
				<h3 class="section_title">
					<span><a href="{u book/shopping}" target="_blank">更多>></a></span>推荐这家店铺的人还在看
				</h3>
				<div class="attr_list" style="width: 230px;">
					<!--{loop $shops_tags['tags'] $tag}-->
					<a class="attr" href="{echo FU('book/shopping',array('tag'=>urlencode($tag)))}" target="_blank">{$tag}</a>
					<!--{/loop}-->
					<div class="clear-fix"></div>
				</div>
			</div>
		</div>
		<div class="shop_body box_shadow">
			<div id="shop_cat">
				<ul class="catalog_guide f14">
				<?php
					$cate_active = false;
					$g_r_cate = $_FANWE['cache']['goods_category']['root'];
					$g_r_cate = &$_FANWE['cache']['goods_category']['all'][$g_r_cate];
					
					if(MODULE_NAME == 'shop' && ACTION_NAME == 'show')
						$cate_active = true;
	
					$g_i_cates = &$_FANWE['cache']['goods_category']['parent'];
				?>
				<li class="first">分类：</li>
				<li><a href="{echo FU('shop/show', array('id'=>$shop['shop_id']))}" class="{if !$goods_cate_code}red{/if}" style="background:none;">全部</a></li>
				<!--{loop $g_i_cates $g_i_cate_id}-->
				<?php
					$g_i_cate = &$_FANWE['cache']['goods_category']['all'][$g_i_cate_id];
					$g_i_code = &$g_i_cate['cate_code'];
				?>
				<li><a href="{echo FU('shop/show', array('id'=>$shop['shop_id'],'cate'=>$g_i_code))}" class="{if $goods_cate_code== $g_i_code}red{/if}" style="background:none;">{$g_i_cate['cate_name']}</a></li>
				<!--{/loop}-->
				</ul>
			</div>

			<div id="sort">
				<ul>
				<li class="first">{lang sort_by}：</li>
				<li><a {if $pop_url['act'] == 1}class="c"{/if} href="$pop_url['url']">{lang sort_pop}</a></li>
				<li><a {if $new_url['act'] == 1}class="c"{/if} href="$new_url['url']">{lang sort_new}</a></li>
				<li><a {if $hot7_url['act'] == 1}class="c"{/if} href="$hot7_url['url']" style="width:68px;">{lang sort_7hot}</a></li>
				<li><a {if $hot30_url['act'] == 1}class="c"{/if} href="$hot30_url['url']" style="width:68px;">{lang sort_30hot}</a></li>
				</ul>
			</div>
			

			<div class="goods_show_list">
			<ul>
				<!--{loop $share_list $share}-->
				<li style="border-top: solid 1px #cccccc; position: relative;" class="i_w_f">
						<a href="{$share['imgs'][0]['url']}" target="_blank">
							{eval $index_img = $share['index_img'];}
							{if $index_img}
							<img class="img" src="{getimg $index_img 200 999 1}"  width="200px" height="200px"/>
							{else}
							<img class="img" src="{getimg $share['imgs'][0]['img'] 200 999 1}"  width="200px" height="200px"/>
							{/if}
						</a>
						<div class="trsp_bg">{$share['imgs'][0]['dzt_discount']}折 </div>
						<div class="dzt_index_price">
						<div class="dzt_index_left_price">
						<span class="dzt_index_price1">{$share['imgs'][0]['price_format1']}</span>
						<span class="dzt_index_price2">{$share['imgs'][0]['price_format2']}</span>
						</div>
						</div>
						<div class="{$share['imgs'][0]['dzt_mall_pic']}"></div>
						
						<div>{$share['time']}</div>
						<div class="goods_show_content">{cutstr $share['content'] 55}</div>
						<!-- <div class="favorite">
							<a href="javascript:;" class="favaImg" onclick="$.Fav_Share({$share['share_id']},this,32,'#share_item_{$share['share_id']}');"></a>
							<div class="favDiv"><a target="_blank" class="favCount SHARE_FAV_COUNT" href="{$share['url']}"  >$share['collect_count']</a></div>
							<a target="_blank" href="{$share['url']}" class="creply"><b>{$share['comment_count']}</b>评论</a>
						</div>
						 -->
						
				</li>
				<!--{/loop}-->
			</ul>
			</div>
			<div class="clear-fix"></div>
			<!--{if $pager['page_count'] > 1}-->
			<div class="pagination mt20"> 
				<!--{subtemplate inc/pages}--> 
			</div>
			<!--{/if}-->
		</div>
	</div>
	<div class="clear-fix"></div>
	
</div>
<!--{template inc/footer}-->
<script type="text/javascript">
jQuery(function(){
	<!--{if getIsManage('share')}-->
	$('#SHARE_DETAIL_LiST .t_f').hover(function(){
		var shareID = this.getAttribute('shareID');
		if(shareID)
			$.GetManageMenu('share',shareID,this);
	},function(){});
	<!--{/if}-->
});
</script>
